package dao

import (
	"time"
)

// 这是 LiPurchaseOrderItem 的全局公开dao对象
var LiPurchaseOrderItemDao = liPurchaseOrderItemDao{}

// 这是 li_purchase_order_item表 的实体类
type LiPurchaseOrderItem struct {
	Id              int       `json:"id" form:"id" v:"id"`                                              // ID
	CreateTime      time.Time `json:"create_time" form:"create_time" v:"create_time"`                   // 创建时间
	GoodsName       string    `json:"goods_name" form:"goods_name" v:"goods_name"`                      // 商品名称
	GoodsUnit       string    `json:"goods_unit" form:"goods_unit" v:"goods_unit"`                      // 数量单位
	Images          string    `json:"images" form:"images" v:"images"`                                  // 图片
	Num             string    `json:"num" form:"num" v:"num"`                                           // 数量
	Price           float64   `json:"price" form:"price" v:"price"`                                     // 价格
	PurchaseOrderId string    `json:"purchase_order_id" form:"purchase_order_id" v:"purchase_order_id"` // 采购ID
	Specs           string    `json:"specs" form:"specs" v:"specs"`                                     // 规格

}

// 注意:这是 LiPurchaseOrderItem 的私有dao对象
type liPurchaseOrderItemDao struct {
	Insert func(arg LiPurchaseOrderItem) int                 //插入一条记录
	Update func(arg LiPurchaseOrderItem) int                 //更新一条记录
	Delete func(arg LiPurchaseOrderItem) int                 //删除一条记录
	Select func(arg LiPurchaseOrderItem) LiPurchaseOrderItem //获取一条记录
}
